import Vue from "vue";
import Router from "vue-router";

Vue.use(Router);

export default new Router({
  mode: "history",
  routes: [
    {
      //登录页面
      path: "/Login",
      name: "Login",
      component: () => import("@/components/login/Login"),
      meta: {
        title: "登陆"
      }
    },
    {
      path: "/",
      redirect: "/Container",
      name: "index",
      component: () => import("@/components/index/index"),
      children: [
        {
          path: "/Container",
          name: "Container",
          component: () => import("@/components/index/Container"),
          meta: {
            title: "主页"
          }
        },
        {
          path: "/messageHome",
          name: "messageHome",
          component: () => import("@/components/message/messageHome"),
          meta: {
            title: "消息"
          }
        },
        {
          path: "/Address",
          name: "Address",
          component: () => import("@/components/tongxunlu/Address"),
          meta: {
            title: "认可"
          }
        },
        {
          path: "/Me",
          name: "Me",
          component: () => import("@/components/admin/Me"),
          meta: {
            title: "我的"
          }
        },
        {
          path: "/sqbxMe",
          name: "sqbxMe",
          component: () => import("@/components/admin/sqbxMe"),
          meta: {
            title: "我的"
          }
        }
      ]
    },
    {
      // 我的贴子
      path: "/myModulePost",
      name: "myModulePost",
      component: () => import("@/components/myModule/myModulePost"),
      meta: {
        title: "我的贴子",
      }
    },
    {
      // 评论我的
      path: "/commentMyModule",
      name: "commentMyModule",
      component: () => import("@/components/myModule/commentMyModule"),
      meta: {
        title: "评论我的",
      }
    },
    {
      // 赞我的
      path: "/fabulousMyModule",
      name: "fabulousMyModule",
      component: () => import("@/components/myModule/fabulousMyModule"),
      meta: {
        title: "赞我的",
      }
    },
    {
      // 工会主页 OrganizationHome
      path: "/OrganizationHome",
      name: "OrganizationHome",
      component: () => import("@/components/laborUnion/OrganizationHome"),
      meta: {
        title: "工会",
      }
    },
    {
      // 详情列表
      path: "/DetailList",
      name: "DetailList",
      component: () => import("@/components/laborUnion/DetailList"),
      meta: {
        title: "协会新闻",
      }
    },
    {
        // 详情二级列表
        path: "/UnionNews",
        name: "UnionNews",
        component: () => import("@/components/laborUnion/UnionNews"),
        meta: {
          title: "工会新闻",
        }
      },
    {
      path: "/Setting",
      name: "Setting",
      component: () => import("@/components/admin/Setting"),
      meta: {
        title: "设置",
      }
    },
    {
      //通讯录
      path: "/Personnel",
      name: "Personnel",
      component: () => import("@/components/tongxunlu/Personnel"),
      meta: {
        title: "部门",
      }
    },
    {
      //做任务赚积分
      path: "/GainHome",
      name: "GainHome",
      component: () => import("@/components/gainIntegral/GainHome"),
      meta: {
        title: "赚积分",
      }
    },
    {
      path: "/GiveLike",
      name: "GiveLike",
      component: () => import("@/components/tongxunlu/GiveLike"),
      meta: {
        title: "微认可",
      }
    },
    {
      // 抽奖
      path: "/LotteryHome",
      name: "LotteryHome",
      component: () => import("@/components/lottery/LotteryHome"),
      children: [
        {
          path: "/LuckyDraw",
          name: "LuckyDraw",
          component: () => import("@/components/lottery/LuckyDraw"),
          meta: {
            title: "抽奖",
          }
        },
        {
          //抽奖个人主页面
          path: "/LotteryMe",
          name: "LotteryMe",
          component: () => import("@/components/lottery/LotteryMe"),
          meta: {
            title: "我的",
          }
        }
      ]
    },
    {
      //抽奖转盘页面
      path: "/Trunplate",
      name: "Trunplate",
      component: () => import("@/components/lottery/Trunplate")
    },
    {
      //转盘页面2
      path: "/Trunplate1",
      name: "Trunplate1",
      component: () => import("@/components/lottery/Trunplate1"),
      meta: {
        title: "详情",
      }
    },
    {
      //抽奖 奖品 详情页
      path: "/LotteryDetail",
      name: "LotteryDetail",
      component: () => import("@/components/lottery/LotteryDetail"),
      meta: {
        title: "奖品详情",
      }
    },
    {
      //我的奖品详情MyPrize
      path: "/MyPrize",
      name: "MyPrize",
      component: () => import("@/components/lottery/MyPrize"),
      meta: {
        title: "我的奖品",
      }
    },
    {
      //我的抽奖
      path: "/MyPrizeModule",
      name: "MyPrizeModule",
      component: () => import("@/components/lottery/MyPrizeModule"),
      meta: {
        title: "我的抽奖",
      }
    },
    {
      //我的积分 javascript console utils
      path: "/Integral",
      name: "Integral",
      component: () => import("@/components/admin/Integral"),
      meta: {
        title: "积分详情",
      }
    },
    {
      //我的认可详情
      path: "/Accept",
      name: "Accept",
      component: () => import("@/components/admin/Accept"),
      meta: {
        title: "微认可",
      }
    },
    {
      //勋章排行榜  Ranking
      path: "/Ranking",
      name: "Ranking",
      component: () => import("@/components/admin/ranking/Ranking"),
      meta: {
        title: "勋章排行榜",
      }
    },
    {
      //排行榜首页  RankingHome
      path: "/RankingHome",
      name: "RankingHome",
      component: () => import("@/components/admin/ranking/RankingHome"),
      meta: {
        title: "排行榜",
      }
    },
    {
      //我参与的活动详情页  MyParticipant
      path: "/MyParticipant",
      name: "MyParticipant",
      component: () => import("@/components/lottery/MyParticipant"),
      meta: {
        title: "我参与的活动"
      }
    },
    //活动
    {
      //活动首页    ActivityIndex
      path: "/ActivityIndex",
      name: "ActivityIndex",
      component: () => import("@/components/activity/ActivityIndex"),
      meta: {
        title: "活动"
      },
      children: [
        {
          //活动主页 ActivityHome
          path: "/ActivityHome",
          name: "ActivityHome",
          component: () => import("@/components/activity/ActivityHome"),
          meta: {
            title: "活动",

          }
        },
        {
          //我的 ActivityMy
          path: "/ActivityMy",
          name: "ActivityMy",
          component: () => import("@/components/activity/ActivityMy"),
          meta: {
            title: "我的",

          }
        }
      ]
    },
    {
      //活动详情 ActivityDetail
      path: "/ActivityDetail",
      name: "ActivityDetail",
      component: () => import("@/components/activity/ActivityDetail"),
      meta: {
        title: "活动详情",

      }
    },
    {
      //活动详情 ActivityDetail
      path: "/sqbxActivity",
      name: "sqbxActivity",
      component: () => import("@/components/activity/sqbxActivity"),
      meta: {
        title: "活动详情",

      }
    },
    {
      //活动报名 Apply
      path: "/Apply",
      name: "Apply",
      component: () => import("@/components/activity/Apply"),
      meta: {
        title: "活动预约",

      }
    },
    {
      //我报名的 MyJoin
      path: "/MyJoin",
      name: "MyJoin",
      component: () => import("@/components/activity/MyJoin"),
      meta: {
        title: "我报名的",

      }
    },
    //论坛
    {
      //微社区首页  CommunityIndex
      path: "/CommunityIndex",
      name: "CommunityIndex",
      component: () => import("@/components/community/CommunityIndex"),
      children: [
        {
          //微社区首页  CommunityHome
          path: "/CommunityHome",
          name: "CommunityHome",
          component: () => import("@/components/community/CommunityHome"),
          meta: {
            title: "论坛",

          }
        },
        {
          //微社区我的   CommunityMy
          path: "/CommunityMy",
          name: "CommunityMy",
          component: () => import("@/components/community/CommunityMy"),
          meta: {
            title: "我的",

          }
        }
      ]
    },
    {
      //微社区详情   CommunityDetail
      path: "/CommunityDetail",
      name: "CommunityDetail",
      component: () => import("@/components/community/CommunityDetail"),
      meta: {
        title: "详情",

      }
    },
    {
      //微社区话题   TopicType
      path: "/TopicType",
      name: "TopicType",
      component: () => import("@/components/community/TopicType"),
      meta: {
        title: "话题",

      }
    },
    {
      //微社区发表主题   CommunityTheme
      path: "/CommunityTheme",
      name: "CommunityTheme",
      component: () =>
        import("@/components/community/component/CommunityTheme"),
      meta: {
        title: "发布主题帖",

      }
    },
    {
      //微社区发表主题   CommunityTheme
      path: "/TopicSele",
      name: "TopicSele",
      component: () => import("@/components/community/component/TopicSele"),
      meta: {
        title: "发布主题帖",

      }
    },
    {
      //微社区我的贴子   MyPost
      path: "/MyPost",
      name: "MyPost",
      component: () => import("@/components/community/MyPost"),
      meta: {
        title: "我的贴子",

      }
    },
    {
      //微社区评论我的   commentMy
      path: "/commentMy",
      name: "commentMy",
      component: () => import("@/components/community/commentMy"),
      meta: {
        title: "评论我的",

      }
    },
    {
      //微社区赞我的   fabulousMy
      path: "/fabulousMy",
      name: "fabulousMy",
      component: () => import("@/components/community/fabulousMy"),
      meta: {
        title: "赞我的",

      }
    },
    //优化建议
    {
      //优化建议首页  proposalIndex
      path: "/proposalIndex",
      name: "proposalIndex",
      component: () => import("@/components/proposal/proposalIndex"),
      children: [
        {
          //优化建议首页  proposalHome
          path: "/proposalHome",
          name: "proposalHome",
          component: () => import("@/components/proposal/proposalHome"),
          meta: {
            title: "优化建议",

          }
        },
        {
          //优化建议我的   proposalMy
          path: "/proposalMy",
          name: "proposalMy",
          component: () => import("@/components/proposal/proposalMy"),
          meta: {
            title: "我的",

          }
        }
      ]
    },
    {
      //优化建议详情   proposalDetail
      path: "/proposalDetail",
      name: "proposalDetail",
      component: () => import("@/components/proposal/proposalDetail"),
      meta: {
        title: "详情",

      }
    },
    {
      //添加优化建议   proposal
      path: "/proposal",
      name: "proposal",
      component: () => import("@/components/proposal/proposal"),
      meta: {
        title: "发布优化建议贴",

      }
    },
    {
      //优化建议我的贴子   proposalMyPost
      path: "/proposalMyPost",
      name: "proposalMyPost",
      component: () => import("@/components/proposal/proposalMyPost"),
      meta: {
        title: "我的贴子",

      }
    },
    {
      //优化建议评论我的   proposalCommentMy
      path: "/proposalCommentMy",
      name: "proposalCommentMy",
      component: () => import("@/components/proposal/proposalCommentMy"),
      meta: {
        title: "评论我的",

      }
    },
    {
      //优化建议赞我的   proposalFabulousMy
      path: "/proposalFabulousMy",
      name: "proposalFabulousMy",
      component: () => import("@/components/proposal/proposalFabulousMy"),
      meta: {
        title: "赞我的",

      }
    },
    {
      //问卷 首页 SurveyHome
      path: "/SurveyHome",
      name: "SurveyHome",
      component: () => import("@/components/survey/SurveyHome"),
      children: [
        {
          path: "/",
          redirect: "/SurveryList"
        },
        {
          //  问卷首页  SurveryList
          path: "/SurveryList",
          name: "SurveryList",
          component: () => import("@/components/survey/SurveryList"),
          meta: {
            title: "问卷",

          }
        },
        {
          //问卷 我的 SurveyMe
          path: "/SurveyMe",
          name: "SurveyMe",
          component: () => import("@/components/survey/SurveyMe"),
          meta: {
            title: "我的",

          }
        }
      ]
    },
    {
      //问卷详情页
      path: "/SurveyDetails",
      name: "SurveyDetails",
      component: () => import("@/components/survey/SurveyDetails"),
      meta: {
        title: "问卷详情",

      }
    },
    {
      //问卷 我参与的 SurveyPartake
      path: "/SurveyPartake",
      name: "SurveyPartake",
      component: () => import("@/components/survey/SurveyPartake"),
      meta: {
        title: "我参与的",

      }
    },
    {
      //投票
      path: "/VoteHome",
      name: "VoteHome",
      component: () => import("@/components/vote/VoteHome"),
      meta: {
        title: "投票",

      }
    },
    {
      //投票类型1 VoteTypeOne
      path: "/VoteTypeOne",
      name: "VoteTypeOne",
      component: () => import("@/components/vote/VoteTypeOne"),
      meta: {
        title: "详情",

      }
    },
    {
      //投票类型2 VoteTypeTwo
      path: "/VoteTypeTwo",
      name: "VoteTypeTwo",
      component: () => import("@/components/vote/VoteTypeTwo"),
      meta: {
        title: "详情",

      }
    },
    {
      //投票类型3 VoteTypeThree
      path: "/VoteTypeThree",
      name: "VoteTypeThree",
      component: () => import("@/components/vote/VoteTypeThree"),
      meta: {
        title: "详情",

      }
    },
    {
      //投票个人介绍 VoteMess
      path: "/VoteMess",
      name: "VoteMess",
      component: () => import("@/components/vote/VoteMess"),
      meta: {
        title: "个人信息",

      }
    },
    {
      //投票规则  VoteRoul
      path: "/VoteRoul",
      name: "VoteRoul",
      component: () => import("@/components/vote/VoteRoul"),
      meta: {
        title: "投票规则",

      }
    },
    {
      //投票规则  VoteRoul
      path: "/MyVote",
      name: "MyVote",
      component: () => import("@/components/vote/MyVote"),
      meta: {
        title: "我的投票",

      }
    },
    {
      //我的勋章   Medal
      path: "/Medal",
      name: "Medal",
      component: () => import("@/components/admin/Medal"),
      meta: {
        title: "我的勋章",

      }
    },
    {
      //勋章详情
      path: "/MedalDetails",
      name: "MedalDetails",
      component: () => import("@/components/admin/MedalDetails"),
      meta: {
        title: "详情",

      }
    },
    {
      //我的 => 签到
      path: "/Signin",
      name: "Signin",
      component: () => import("@/components/admin/Signin"),
      meta: {
        title: "签到",

      }
    },
    {
      //新闻 => 首页
      path: "/NewsHome",
      name: "NewsHome",
      component: () => import("@/components/news/NewsHome"),
      meta: {
        title: "新闻",

      }
    },
    {
      //新闻 => 联合电子首页
      path: "/NewsHome2",
      name: "NewsHome2",
      component: () => import("@/components/news/NewsHome2"),
      meta: {
        title: "新闻",

      }
    },
    {
      //学习 => 首页
      path: "/StudyHome",
      name: "StudyHome",
      component: () => import("@/components/study/StudyHome"),
      meta: {
        title: "学习",

      }
    },
    {
      //学习 => 详情
      path: "/StudyDetail",
      name: "StudyDetail",
      component: () => import("@/components/study/StudyDetail"),
      meta: {
        title: "学习详情",

      }
    },
    {
      //权益 => 首页
      path: "/EquityHome",
      name: "EquityHome",
      component: () => import("@/components/equity/EquityHome"),
      meta: {
        title: "权益",

      }
    },
    {
      //结婚慰问
      path: "/MarryConsolation",
      name: "MarryConsolation",
      component: () => import("@/components/equity/MarryConsolation"),
      meta: {
        title: "结婚信息完善",

      }
    },
    {
      //生育慰问
      path: "/BirthConsolation",
      name: "BirthConsolation",
      component: () => import("@/components/equity/BirthConsolation"),
      meta: {
        title: "生育信息完善",

      }
    },
    {
      path: "/ajwlHuD",
      name: "ajwlHuD",
      component: () => import("@/components/index/nav/ajwlHuD"),
      meta: {
        title: "互动模块",

      }
    },
    //没事戳戳
    {
        path: "/CuoCuo",
        name: "CuoCuo",
        component: () => import("@/components/index/lhdzTwoPage/CuoCuo"),
        meta: {
          title: "没事戳戳",

        }
      },
       //U才达人
    {
        path: "/Intelligent",
        name: "Intelligent",
        component: () => import("@/components/index/lhdzTwoPage/Intelligent"),
        meta: {
          title: "U才达人",

        }
      },
         //U思U享
    {
        path: "/Thought",
        name: "Thought",
        component: () => import("@/components/index/lhdzTwoPage/Thought"),
        meta: {
          title: "U思U享",

        }
      },
         //创新品牌
    {
        path: "/Brand",
        name: "Brand",
        component: () => import("@/components/index/lhdzTwoPage/Brand"),
        meta: {
          title: "创新品牌",

        }
      },

    // {
    //   path: "/index2",
    //   name: "index2",
    //   component: index2,
    //   children: [{
    //       path: "/index2/Home2",
    //       name: "Home2",
    //       component: Home2
    //     },
    //     {
    //       path: '/index2/Home2',
    //       redirect: "/index2/Home2"
    //     },
    //   ]
    // },
  ]
});
